package org.example;
public class Man {
    private String name;

    private String gender;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public void getInfo(){
        System.out.println("姓名："+this.getName());
        System.out.println("性别："+this.getGender());
    }
}
